#{extends 'menuCoordenador.html' /}
#{set title:'Coordenador' /}

<div id ="form2">
<div align= "center">
<h3> Membros do Colegiado <br> </h3>


<script type="text/javascript" language="JavaScript"> 
function AskAndSubmit(t) 
{ 
 var answer = confirm("Confirmar Remoção?"); 
 if (answer) 
 { 
   t.form.submit(); 
 } else{}
} 
</script>


#{form @Coordenador.indexUser()}
		
	<input type="Submit" value="Adicionar Novo Membro"> 

#{/form}

#{if colegiado}
		<TABLE BORDER=1>

	<TR><TH COLSPAN=2>Nome</TH><TH COLSPAN=2>Siape</TH><TH COLSPAN=2> Email</TH><TH COLSPAN=2> Ações</TH></TR>


	<ul>
		#{list items:colegiado, as:'req'}
   
    		<TR><TD COLSPAN=2><input type="text" name="nome" size="20" value="${req.nome}" readonly="readonly"></TD><TD COLSPAN=2><input type="text" name="siape" size="20" value="${req.siape}" readonly="readonly"></TD><TD COLSPAN=2><input type="Text" name="email" size="20" style="background-color:#ddd;color:#00f;"value="${req.email}" readonly="readonly"></TD>
    		
    		<TD> #{form @Coordenador.removeColegiado(req.id)}
		
			<input type="button" name="Confirm" value="Remover" onclick="AskAndSubmit(this)" >
 
				 #{/form}
		    </TD>
		    
		    
		    </TR>
  
		#{/list}

	</ul>

		</TABLE>
#{/if} 

#{else}
	<p>	Não existe colegiado </p>
#{/else}


</div>
</div>
</div>
</div>
</div>

